package org.training.apr.model.utils.builder;

import org.training.apr.model.Role;

public class RoleBuilder extends Builder {
	private String name = "Role #" + id;
	private String type = Role.OPERATOR;
	
	public RoleBuilder setName(String name) {
		this.name = name;
		return this;
	}
	
	public RoleBuilder withType(String type) {
		this.type = type;
		return this;
	}
	
	public Role build() {
		Role role = new Role();
		
		role.setId(id);
		role.setName(name);
		role.setType(type);
		
		return role;
	}
}
